<?php include TEMPLATEPATH . '/banner-bottom.php'; ?>
</div> <!--End Inner-->
</div><!-- containerwrap -->
<div class="bulutsacak"></div>
<div class="bulutsacak2"></div>

<footer id="footer">
    <div class="footer_wrap">
    <div class="inner">
 	     <?php $footer_layout = of_get_option('footer_layout'); if ( $footer_layout == 'third') { ?>
			<div class="one_third">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>

			</div><!-- End third col -->
			<div class="one_third">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div><!-- End third col -->
			<div class="one_third last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>

			</div><!-- End third col -->
	    <?php } elseif ($footer_layout == 'one') { ?>
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
	    <?php } elseif ($footer_layout == 'one_half') { ?>
			<div class="one_half">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_half last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>
	    <?php } elseif ($footer_layout == 'fourth') { ?>
			<div class="one_fourth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_fourth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_fourth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_fourth last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer4')){ }else { ?>
	        <?php } ?>
			</div>
	    <?php } elseif ($footer_layout == 'fifth') { ?>
			<div class="one_fifth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_fifth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_fifth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_fifth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer4')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_fifth last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer5')){ }else { ?>
	        <?php } ?>
			</div>
	    <?php } elseif ($footer_layout == 'sixth') { ?>
			<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer4')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer5')){ }else { ?>
	        <?php } ?>
			</div>
			<div class="one_sixth last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer6')){ }else { ?>
	        <?php } ?>
			</div>

    	    <?php } elseif ($footer_layout == 'half_twop') { ?>
	    		<div class="one_half">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_fourth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_fourth last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>
	    
    	    <?php } elseif ($footer_layout == 'twop_half') { ?>
	    		<div class="one_fourth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_fourth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_half last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>

    	    <?php } elseif ($footer_layout == 'half_threep') { ?>
	    		<div class="one_half">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer4')){ }else { ?>
	        <?php } ?>
			</div>
    	    <?php } elseif ($footer_layout == 'threep_half') { ?>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_half last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer4')){ }else { ?>
	        <?php } ?>
			</div>

    	    <?php } elseif ($footer_layout == 'third_threep') { ?>
	    		<div class="one_third">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_fifth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_fifth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_fifth last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer4')){ }else { ?>
	        <?php } ?>
			</div>


    	    <?php } elseif ($footer_layout == 'threep_third') { ?>

	    		<div class="one_fifth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_fifth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_fifth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>
			
			<div class="one_third last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer4')){ }else { ?>
	        <?php } ?>
			</div>

    	    <?php } elseif ($footer_layout == 'third_fourp') { ?>
			<div class="one_third">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer4')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer5')){ }else { ?>
	        <?php } ?>
			</div>


       	    <?php } elseif ($footer_layout == 'fourp_third') { ?>
	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer1')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer2')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer3')){ }else { ?>
	        <?php } ?>
			</div>

	    		<div class="one_sixth">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer4')){ }else { ?>
	        <?php } ?>
			</div>
	    
	    <div class="one_third last">
		<?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('footer5')){ }else { ?>
	        <?php } ?>
			</div>

	    <?php } ?>
    </div> <!--End Inner-->

    </div> <!--footer wrap-->
</footer> <!--End Footer-->
<div class="bottom_bar">
    <div class="inner">


		<div id="kapanis">
			<a href="mailto:ben@taneryilmaz.net"><i>ben@taneryilmaz.net</i></a>
			<div class="clear"></div>
			<div id="kapanisikon">
				<?php if(of_get_option('bottom_social') != true) { ?>
					<?php if ( has_nav_menu( 'footer' ) ) { ?>
					<?php  wp_nav_menu ( array( 'menu_class' => 'footer_menu','container'=> 'ul', 'theme_location' => 'footer' )); ?>
						<?php } else { ?>
							<ul class="footer_menu">
								<?php wp_list_pages(array(
								'title_li' => false
								)); ?>
							</ul> <!--Top Nav-->
						<?php } ?>
				<?php } else { include TEMPLATEPATH . '/bottom-social.php'; } ?>
			</div>
			<div class="clear"></div>
			<small><i>- <?php echo of_get_option('copyrights'); ?> -</i></small>
		</div>


    </div> <!--End Inner-->
</div> <!--end bottom Bar-->
<?php wp_footer(); ?>
</div> <!--End Fixed-->
<?php if(of_get_option('scroll_top_bt') != false) { ?>
<div class="scrollTo_top">
    <a title="<?php _e('Scroll to top', 'theme'); ?>" href="#">
    	<?php if(of_get_option('scroll_top_bt_img')){ ?>
	<img src="<?php echo of_get_option('scroll_top_bt_img'); ?>" alt="<?php _e('Scroll to top', 'theme'); ?>" />
	<?php } else { ?>
    <img src="<?php echo MOM_IMG; ?>/up.png" alt="<?php _e('Scroll to top', 'theme'); ?>">
    <?php } ?>
    </a>
</div>
<?php } ?>

<?php echo of_get_option('footer_script'); ?>
</body>
</html>
